home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / sctoolbar.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-11-02  |  3.1 KB  |  95 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. /***************************************************************************
  8.  *   Copyright (C) 2006 by Riku Leino                                      *
  9.  *   riku@scribus.info                                                     *
  10.  *                                                                         *
  11.  *   This program is free software; you can redistribute it and/or modify  *
  12.  *   it under the terms of the GNU General Public License as published by  *
  13.  *   the Free Software Foundation; either version 2 of the License, or     *
  14.  *   (at your option) any later version.                                   *
  15.  *                                                                         *
  16.  *   This program is distributed in the hope that it will be useful,       *
  17.  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
  18.  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
  19.  *   GNU General Public License for more details.                          *
  20.  *                                                                         *
  21.  *   You should have received a copy of the GNU General Public License     *
  22.  *   along with this program; if not, write to the                         *
  23.  *   Free Software Foundation, Inc.,                                       *
  24.  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  25.  ***************************************************************************/
  26.  
  27. #ifndef SCTOOLBAR_H
  28. #define SCTOOLBAR_H
  29.  
  30. #include "scribusapi.h"
  31. #include <QToolBar>
  32. #include <QMainWindow>
  33. #include <QMenu>
  34. #include <QCloseEvent>
  35.  
  36. class QString;
  37. class PrefsContext;
  38. class QCloseEvent;
  39. class QToolButton;
  40.  
  41. class SCRIBUS_API ScToolBar : public QToolBar
  42. {
  43.     Q_OBJECT
  44. public:
  45.     // prefName is the name without tr() that will be used in the preferences for this toolbar
  46.     // if using name settings depend on the language
  47.     ScToolBar(const QString& name, const QString &prefName, QMainWindow *parent, Qt::Orientation o = Qt::Horizontal);
  48.     virtual ~ScToolBar();
  49.  
  50. //     int position();
  51. //     void storeDockPosition();
  52. //     void moveDock();
  53. //     void initVisibility();
  54.     
  55. signals:
  56.     void visibilityChanged(bool);
  57.  
  58. public slots:
  59.     void languageChange();
  60.  
  61. protected slots:
  62. //     void slotPlaceChanged(Q3DockWindow::Place p);
  63. //     void slotVisibilityChanged(bool visible);
  64. //     void slotTop();
  65. //     void slotRight();
  66. //     void slotBottom();
  67. //     void slotLeft();
  68. //     void slotVert();
  69. //     void slotHor();
  70.  
  71. private:
  72.     QString m_name;
  73.     PrefsContext *m_prefs;
  74.     Qt::Orientation floatOrientation;
  75.     QToolButton *prefsButton;
  76. //     QMenu  *popup;
  77. //     QMenu  *dockMenu;
  78. //     QMenu  *orientationMenu;
  79.     QMainWindow* parentMW;
  80.     bool dockTop;
  81.     bool dockRight;
  82.     bool dockBottom;
  83.     bool dockLeft;
  84.  
  85. //     void initPrefsButton();
  86. //     void storeDockPositions();
  87. //     void moveDocks();
  88.     void hideEvent(QHideEvent * e);
  89.     void showEvent(QShowEvent * e);
  90.  
  91.     enum Orientation { Vert, Hor };
  92. };
  93.  
  94. #endif
  95.